// platform/PlatformFactory.ts
import { H5Platform } from './H5Platform';
import { AppPlatform } from './AppPlatform';
import { IPlatform } from './IPlatform';

export class PlatformFactory {
  static createPlatform(): IPlatform {
    return process.env.UNI_PLATFORM === 'h5' ? new H5Platform() : new AppPlatform();
  }
}